module.exports = function ($scope, $state, $stateParams,$resource,$modal, toaster) {  
    var car_code = $stateParams.car_code;
    console.log(car_code);
    if(car_code){
        $resource('/api/as/dsc/traffic/getCarInfoList ', {}, {}).save({'car_code' : car_code}, function(res){
            console.log($scope.info);
            if(res.errcode !== 0){            
                toaster.error({title:"",body:res.errmsg});
            }else{
                console.log(res);
            }
        });

    }
}